package com.example.ymm.modules1.service.hl.ex;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.hl.ex.ExQuestion;
import com.example.ymm.modules1.query.hl.ex.ExQuestionQueryCriteria;
import com.example.ymm.modules1.service.dto.heng.ex.ImQuestionGroupDto;
import com.example.ymm.modules1.service.dto.heng.ex.ImportQuestionDataDto;
import com.example.ymm.modules1.service.dto.heng.ex.ImportQuestionDataDto2;
import com.example.ymm.modules1.service.dto.heng.ex.ImportXinGeQuestionDataDto;

import java.util.List;

public interface ExQuestionService extends BaseService<ExQuestion> {


    TableList<ExQuestion> list(ExQuestionQueryCriteria criteria, YmPageDto ymPage);

    List<ExQuestion> queryAll(ExQuestionQueryCriteria criteria);

    /**
     * 题目导入
     * @param dto
     * @return
     */
    List<String> importQuestionFn(ImportQuestionDataDto dto);


    /**
     * 题目导入 -重新排序
     * @param dto
     * @return
     */
    List<String> importQuestionSortFn(ImportQuestionDataDto dto);


    List<String> importQuestionFn2(ImportQuestionDataDto2 dto);


    /**
     * 性格与测试题目导入
     * @param dto
     * @return
     */
    List<String> importXinGeQuestionFn(ImportXinGeQuestionDataDto dto);

    /**
     * 后端带图片的excel导入
     * @param
     * @return
     */
    List<String> importQuestionFn3(List<ImQuestionGroupDto> list);


    void questionSave(ExQuestion question);

    void questionBatchCategoryId(String categoryId,String questionIds);


    Long countByCategoryId(String categoryId);


    List<ExQuestion> queryList(ExQuestionQueryCriteria criteria);


    List<ExQuestion> queryListSort(ExQuestionQueryCriteria criteria);


}
